//
//  ActionSheetView.h
//  etionUI
//
//  Created by wjxfhxy on 14-7-11.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

@class XUIActionSheetView;

@protocol XUIActionSheetViewDelegate <NSObject>

@optional

-(void)actionSheetView:(XUIActionSheetView*)actionSheetView clickItemAtIndex:(NSUInteger)index;

-(UIImage*)actionSheetView:(XUIActionSheetView*)actionSheetView itemLeftImageAtIndex:(NSUInteger)index;

-(UIImage*)actionSheetView:(XUIActionSheetView*)actionSheetView itemRightImageAtIndex:(NSUInteger)index;

//自定义某一个item的内容
-(UIView*)actionSheetView:(XUIActionSheetView*)actionSheetView itemCustomContentAtIndex:(NSUInteger)index inContainHeight:(CGFloat)height;

-(void)clickedCancelButtonOfActionSheetView:(XUIActionSheetView*)actionSheetView;

-(void)willDismissActionSheetView:(XUIActionSheetView*)actionSheetView;

@end

@interface XUIActionSheetView : UIView
{
}

@property(nonatomic,assign) NSTextAlignment textAlignment;

- (id)initWithTitle:(NSString *)title delegate:(id<XUIActionSheetViewDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray*)otherButtonTitles;

- (void)show;

+(void)actionSheetViewWithTitle:(NSString *)title cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSArray*)otherButtonTitles show:(void(^)(NSUInteger clickIndex))clickOtherButton;

@end
